package com.study.config;

import com.study.pojo.Admin;
import com.study.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MyConfig class
 *
 * @author chenyeqing
 * @date 2020/12/31
 */
@Configuration
//@ComponentScan(basePackages = "com.study.pojo")
public class MyConfig {

    @Bean
    public User user() {
        return new User();
    }

    @Bean
    public Admin admin() {
        return new Admin();
    }
}
